function testformatter(value, row, index) {
	if(value != null)
    	 return [
       	 "<table class='table4'></table>"
   	 ].join('');
   	 return "";
                
}
$(function(){
	testformatter(1,2,3);
	 $("#table2").bootstrapTable({
//          method: 'get',
            striped: true,
            showExport:true,
            cache: false,
            pagination: false,
            sortable: false,
            sortOrder: "desc",	
            pageNumber:1,
            pageSize: 10,
//          url: "/account/list",
            sidePagination: "client",
            queryParamsType:'',
            exportOptions:{
                fileName:$('#table-title').text(),
                ignoreColumn:[4]
            },
           
            columns: [{
                field:'aid',
                title:'主题',
                align:'center',
            },{
                field:'name',
                title:'填单时间',
                align:'center'
            },{
                field:'sex',
                title:'入库明细',
                align:'center',
                formatter:testformatter
            },{
                field:'code',
                title:'填单人',
                align:'center'
            },{
                field:'openMoney',
                title:'状态',
                align:'center',
            }],
            data:[{
            	aid:'1234',
            	name:'今天',
            	sex:'1',
            	code:'陈默',
            	openMoney:'未入库'
            },{	
            	aid:'1234',
            	name:'今天',
            	sex:1,
            	code:'陈默',
            	openMoney:'未入库'
            },{
            	aid:'1234',
            	name:'今天',
            	sex:1,
            	code:'陈默',
            	openMoney:'未入库'
            },{
            	aid:'1234',
            	name:'今天',
            	sex:1,
            	code:'陈默',
            	openMoney:'未入库'
            }],
            onLoadSuccess:function (data) {
            	
            },
            onLoadError:function (status) {
               
            }
        })
	 
//	addFotter( $('#table2'),{
//		aid:'合计',
//		openMoney:''
//	})
//
// 
//	addFotter( $('#table2'),{
//		aid:'合计1',
//		openMoney:''
//	})
//		
//	formatterFotter($('#table2'),'aid',2,2);
//	formatterFotter($('#table2'),'aid',2,1);
//	
 
})








